<template>
  <div>
    <TypeNav />
    <List />
    <Today />
    <Rank />
    <Like />
    <Floor v-for="floor,index in floorList" :key="index" :floor ="floor"/>
    <Brand />
  </div>
</template>

<script>
import List from "./List";
import Today from "./Today";
import Rank from "./Rank";
import Like from "./Like";
import Floor from "./Floor";
import Brand from "./Brand";

import { requestFloorList } from "@/api/home";
export default {
  name: "Home",
  components: {
    List,
    Today,
    Rank,
    Like,
    Floor,
    Brand,
  },
  data(){
    return{
      floorList:[]
    }
  },
  mounted(){
     this.getFloorList()
  },
  methods: {
    async getFloorList() {
      const result = await requestFloorList();
      this.floorList = result
    },
  },
};
</script>

<style scoped lang="less">
</style>